package org.lex.ftp.ui.actions;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.KeyStroke;

import org.lex.ftp.FTP;
import org.lex.ftp.queue.QueueUtils;

public class UploadQueueAction extends FTPAction {
	public UploadQueueAction(FTP app) {
		super(app);
		this.setName("Queue");
		this.setAcceleratorKey(KeyStroke.getKeyStroke(KeyEvent.VK_Q, KeyEvent.CTRL_DOWN_MASK));
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		QueueUtils.uploadSelected(app);
	}

}
